<!DOCTYPE html>
<html lang="zh">
<head>
    <th:block th:include="libs :: header('')"></th:block>
</head>
<body>
<div id="GenOnlinePage">
    <ivz-basic-view :metas="metas" :config="config" :search-metas="searchMetas"></ivz-basic-view>
</div>
</body>
<th:block th:include="libs :: footer"></th:block>
<script>
    let vue = new Vue({
        el: "#GenOnlinePage",
        data: {
            metas: [
                {field: 'name', title: '功能名称', width: 164 },
                {field: 'remark', title: '功能说明', width: 256 },
                {field: 'createTime', title: '创建时间', type: 'date'},
                {field: 'updateTime', title: '更新时间', type: 'date'},
                {field: 'action', title: '操作', type: 'action', width: -1}
            ],
            searchMetas: [
                {field: 'name', title: '功能名称'},
            ],
            config: {
                form: {
                    column: 3
                },
                table: {
                    // selection: {}, // 表格多选
                    // pagination: {} // 表格分页
                }
            },
        },
        created: function() {
            this.$page.setActionMeta("Add", {
                callBack(row) {
                    return new Promise(resolve => {
                        window.open("/dev/online");
                    })
                }
            });
            this.$page.setActionMeta("Edit", {
                callBack(row) {
                    return new Promise(resolve => {
                        window.open("/dev/online?id="+row.id);
                    })
                }
            });
        },
        methods: { }
    });
</script>
</html>

